<%@  page language="java" contentType="text/html; charset=utf-8"
import="com.brother.model.*,com.brother.service.*,com.brother.*,com.brother.util.*,
java.util.*"   pageEncoding="utf-8"%>
<%
com.brother.model.Customer user = (com.brother.model.Customer)session.getAttribute(com.brother.Constants.LOGIN_SESSTION_NAME);
if(user == null){
	return;
}

TrackerService ts = new TrackerService();
List<Tracker> trackers = ts.findUserTracker(user.getUserid());
TipService tps = new TipService();
String lan = (String)session.getAttribute("locale");
List<Tip> tips = tps.getTrackerLastTip(trackers,lan); 

DateFormatter format = new DateFormatter(); 
format.setConfig(user.getTimeZoneOffSet(), "yyyy-MM-dd HH:mm:ss");

%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
</head>
<body>
<table cellpadding="2" cellspacing="0" width="100%">
  <tbody>
  <%for(int i = 0; i < tips.size(); i++){ %>
    <tr>
      <td><%=tips.get(i).getTracker().getTrackerName()%> :</td>
      <td align="right"><%=format.format(tips.get(i).getCreateTime())%></td>
    </tr>
    <tr valign="top" height="22">
      <td colspan="2"><%=tips.get(i).getResource().getValue()%></td>
    </tr>  	
  <%} %>
 
  </tbody>
</table>
</body>
</html>
<%
com.brother.database.DataBase.closeThreadConnection();
%>